/****************************************************************************
 * File: mainwindow.h
 *
 * Date: 2010-02-18
 * Description: The main GUI.
 ***************************************************************************/

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class QLineEdit;
class QTextEdit;
class QCheckBox;
class QLabel;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow( );
    virtual ~MainWindow();

private slots:
    void detect();	// Detect the attatched hardware
    void downloadPre();	// Download bootloader...

    void openApplication();// Open the downloading application
    void insertApplication();// Insert the downloading application to base station
    void checkBase();	// Check if the attatched node is a Deluge base station
    void reprogramDownload(); // Notify the node in network for application download
    void download();	// Download the specific application to nodes

private:
    QTextEdit *textEdit;// Debug information

    QLineEdit *applicationLineEdit;

    QCheckBox *baseStationCheckBox;
    QLabel *nodeIDLabel;
};
#endif
